package com.dokimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dokimall.common.utils.PageUtils;
import com.dokimall.product.entity.AttrEntity;
import com.dokimall.product.entity.AttrGroupEntity;
import com.dokimall.product.vo.*;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author mori
 * @email 550144898@qq.com
 * @date 2021-09-26 14:21:33
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getAttrRelation(Long attrgroupId);

    void attrRelationDelete(AttrRelDelVo[] attrRelDelVo);

    void saveBatch(List<AttrRelDelVo> vos);

    List<AttrGroupVo> getAttrByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVo> getSpuAttrInfo(Long spuId, Long catalogId);
}

